package com.dawn.module.hospital.controller.app.pub;

import com.dawn.framework.apisign.core.annotation.Sign;
import com.dawn.framework.common.pojo.CommonResult;
import com.dawn.module.hospital.controller.app.pub.vo.PriceReqVO;
import com.dawn.module.hospital.service.PubService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

/**
 * @description:
 * @author: cnsu-cmh
 * @time: 2024/8/7 11:37
 */
@Tag(name = "公用 APP - bh")
@RestController
@RequestMapping("/bh/pub")
@Validated
public class AppPubController {

    @Autowired
    private PubService pubService;

    @Sign
    @PostMapping(value = "/price")
    @Operation(summary = "价格查询")
    public CommonResult price(@Valid @RequestBody PriceReqVO reqVO){
        return pubService.price(reqVO);
    }

}
